package com.em.tuppence.core.model.application;

import java.io.Serializable;
import java.util.Date;


public class User implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	/**
	 * openid url, unique identifier, etc
	 */
	private String openIdUrl = null;
	
	/**
	 * local id, globally unique, system assigned, derived from openid (last 10 of sha-512 of openid)
	 * this prevents having to urlencode or pass around the user's identification URL, in general
	 */
	private String id = null;
	
	/**
	 * the user's private secret used as the base for generating keys
	 */
	private byte[] secret = null;
	
	/**
	 * user alias
	 */
	private String alias = null;
	
	/**
	 * (optional) self identification 
	 */
	private String firstName = null;
	private String lastName = null;
	
	/**
	 * contact information 
	 */
	private String email = null;
	
	/**
	 * registration date/time
	 */
	private Date registeredTimestamp = null;
	
	public String getFirstName() {
		return firstName;
	}
	public void setFirstName(String firstName) {
		this.firstName = firstName;
	}
	
	public String getLastName() {
		return lastName;
	}
	public void setLastName(String lastName) {
		this.lastName = lastName;
	}
	
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	
	public String getOpenIdUrl() {
		return openIdUrl;
	}
	public void setOpenIdUrl(String openIdUrl) {
		this.openIdUrl = openIdUrl;
	}
	
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	
	public String getAlias() {
		return alias;
	}
	public void setAlias(String alias) {
		this.alias = alias;
	}
	
	public byte[] getSecret() {
		return secret;
	}
	public void setSecret(byte[] secret) {
		this.secret = secret;
	}
	
	public Date getRegisteredTimestamp() {
		return registeredTimestamp;
	}
	public void setRegisteredTimestamp(Date registeredTimestamp) {
		this.registeredTimestamp = registeredTimestamp;
	}
	
}
